package com.leinao.tensorboard.dao;

import com.leinao.job.dto.PaiProjectJobDto;
import com.leinao.tensorboard.model.Tensorboard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: huopengfei
 * @Date: 2019/5/21 10:37
 * @Description:
 * @Version 1.0
 */
@Repository
public interface TensorboardMapper {

    String getDomainUrlByJobId(@Param("jobId") Long jobId);


    PaiProjectJobDto getConfig(@Param("jobId") Long jobId);
    /**
     * 功能描述:
     * @param tensorboard
     * @Return:void
     * @Author:HuoPengfei
     * @Date:2019/5/21 18:23
     */
    void createContainer(Tensorboard tensorboard);
    /**
     * 功能描述:
     * @param
     * @Return:java.util.List<com.leinao.tensorboard.model.Tensorboard>
     * @Author:HuoPengfei
     * @Date:2019/5/28 16:54
     */
    List<Tensorboard> getContainer();
    /**
     * 功能描述: 获取启动超过10分钟
     * @param
     * @Return:java.util.List<java.lang.String>
     * @Author:HuoPengfei
     * @Date:2019/5/28 17:08
     */
    List<String> getTimeOutConId();

    void deleteTimeOutConById(@Param("conIds") List<String> conIds);

}
